package cn.bone.motan.web;

import cn.bone.api.FooService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Created by MD-01 on 2017/3/8.
 */
@RestController
@RequestMapping("/demo")
public class DemoController {

    @Resource(name="remoteService")
    FooService service;

    @RequestMapping("/hello")
    public String hello(String name){
        String result = service.hello(name);
        return result;
    }
}
